package com.speedcar.base.util;

public class CarNameUtil {

    /**
     * 获取车辆名称
     */
    public static String getCarName(String brandName, String seriesName, String modelName) {
        String carName = modelName;
        if (!carName.contains(seriesName)) {
            carName = seriesName + " " + carName;
        }
        if (!carName.contains(brandName)) {
            carName = brandName + " " + carName;
        }
        return carName;
    }
}
